<!-- 图片上传需引入-->
<script type="text/javascript" src="{{ asset('/assets/js/swfupload/swfupload.js') }}"></script>
<script type="text/javascript" src="{{ asset('/assets/js/swfupload/swfupload.queue.js') }}"></script>
<script type="text/javascript" src="{{ asset('/assets/js/swfupload/swfupload.handlers.js') }}"></script>
<!-- 图片上传需初始化-->
<script type="text/javascript">
    $(function () {
        //初始化上传控件
        $(".upload-img").each(function () {
            $(this).InitSWFUpload({
                button_action:SWFUpload.BUTTON_ACTION.SELECT_FILE,
                sendurl: "{{ path('swfUpload')}}?nbdir=article",
                flashurl: "{{ asset('/assets/js/swfupload/swfupload.swf') }}",
                filetypes: "*.gif;*.jpg;*.png;*.bmp;"
//                max_height:100,
//                max_wight:100
            });
        });
    });
</script>